package com.example.bot_cc.widgettest_420clj;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class newActivity extends AppCompatActivity implements View.OnClickListener{
    private Button back;
    private TextView textView2;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_new_activity);
        init();
    }
    private void init()
    {
        back = (Button)findViewById(R.id.btn_back);
        textView2 = (TextView)findViewById(R.id.textView2);
        back.setOnClickListener(this);
        Intent intent = getIntent();
        String param1 = intent.getStringExtra("param1");
        int param2 = intent.getIntExtra("param2",10);
        textView2.setText(param1+""+String.valueOf(param2));
    }

    @Override
    public void onClick(View view) {
        finish();
    }
}
